﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000367 RID: 871
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CurTrialActivityScNotify : IMessage<CurTrialActivityScNotify>, IMessage, IEquatable<CurTrialActivityScNotify>, IDeepCloneable<CurTrialActivityScNotify>, IBufferMessage
	{
		// Token: 0x17000B4A RID: 2890
		// (get) Token: 0x0600271D RID: 10013 RVA: 0x0006DAF7 File Offset: 0x0006BCF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CurTrialActivityScNotify> Parser
		{
			get
			{
				return CurTrialActivityScNotify._parser;
			}
		}

		// Token: 0x17000B4B RID: 2891
		// (get) Token: 0x0600271E RID: 10014 RVA: 0x0006DAFE File Offset: 0x0006BCFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CurTrialActivityScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B4C RID: 2892
		// (get) Token: 0x0600271F RID: 10015 RVA: 0x0006DB10 File Offset: 0x0006BD10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CurTrialActivityScNotify.Descriptor;
			}
		}

		// Token: 0x06002720 RID: 10016 RVA: 0x0006DB17 File Offset: 0x0006BD17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurTrialActivityScNotify()
		{
		}

		// Token: 0x06002721 RID: 10017 RVA: 0x0006DB1F File Offset: 0x0006BD1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurTrialActivityScNotify(CurTrialActivityScNotify other) : this()
		{
			this.activityStageId_ = other.activityStageId_;
			this.status_ = other.status_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002722 RID: 10018 RVA: 0x0006DB50 File Offset: 0x0006BD50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurTrialActivityScNotify Clone()
		{
			return new CurTrialActivityScNotify(this);
		}

		// Token: 0x17000B4D RID: 2893
		// (get) Token: 0x06002723 RID: 10019 RVA: 0x0006DB58 File Offset: 0x0006BD58
		// (set) Token: 0x06002724 RID: 10020 RVA: 0x0006DB60 File Offset: 0x0006BD60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ActivityStageId
		{
			get
			{
				return this.activityStageId_;
			}
			set
			{
				this.activityStageId_ = value;
			}
		}

		// Token: 0x17000B4E RID: 2894
		// (get) Token: 0x06002725 RID: 10021 RVA: 0x0006DB69 File Offset: 0x0006BD69
		// (set) Token: 0x06002726 RID: 10022 RVA: 0x0006DB71 File Offset: 0x0006BD71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrialActivityStatus Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x06002727 RID: 10023 RVA: 0x0006DB7A File Offset: 0x0006BD7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CurTrialActivityScNotify);
		}

		// Token: 0x06002728 RID: 10024 RVA: 0x0006DB88 File Offset: 0x0006BD88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CurTrialActivityScNotify other)
		{
			return other != null && (other == this || (this.ActivityStageId == other.ActivityStageId && this.Status == other.Status && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002729 RID: 10025 RVA: 0x0006DBC8 File Offset: 0x0006BDC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ActivityStageId != 0U)
			{
				num ^= this.ActivityStageId.GetHashCode();
			}
			if (this.Status != TrialActivityStatus.None)
			{
				num ^= this.Status.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600272A RID: 10026 RVA: 0x0006DC26 File Offset: 0x0006BE26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600272B RID: 10027 RVA: 0x0006DC2E File Offset: 0x0006BE2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600272C RID: 10028 RVA: 0x0006DC38 File Offset: 0x0006BE38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Status != TrialActivityStatus.None)
			{
				output.WriteRawTag(16);
				output.WriteEnum((int)this.Status);
			}
			if (this.ActivityStageId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.ActivityStageId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600272D RID: 10029 RVA: 0x0006DC94 File Offset: 0x0006BE94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ActivityStageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ActivityStageId);
			}
			if (this.Status != TrialActivityStatus.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Status);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600272E RID: 10030 RVA: 0x0006DCEC File Offset: 0x0006BEEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CurTrialActivityScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ActivityStageId != 0U)
			{
				this.ActivityStageId = other.ActivityStageId;
			}
			if (other.Status != TrialActivityStatus.None)
			{
				this.Status = other.Status;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600272F RID: 10031 RVA: 0x0006DD3C File Offset: 0x0006BF3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002730 RID: 10032 RVA: 0x0006DD48 File Offset: 0x0006BF48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 40U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ActivityStageId = input.ReadUInt32();
					}
				}
				else
				{
					this.Status = (TrialActivityStatus)input.ReadEnum();
				}
			}
		}

		// Token: 0x04000FB2 RID: 4018
		private static readonly MessageParser<CurTrialActivityScNotify> _parser = new MessageParser<CurTrialActivityScNotify>(() => new CurTrialActivityScNotify());

		// Token: 0x04000FB3 RID: 4019
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000FB4 RID: 4020
		public const int ActivityStageIdFieldNumber = 5;

		// Token: 0x04000FB5 RID: 4021
		private uint activityStageId_;

		// Token: 0x04000FB6 RID: 4022
		public const int StatusFieldNumber = 2;

		// Token: 0x04000FB7 RID: 4023
		private TrialActivityStatus status_;
	}
}
